package ${basePackage}.service;

import ${viewPackage}.${clazz.className}${viewSuffix};
import java.util.List;

/**
 * Comment:  ${clazz.classComment} service interface
 * @author: ${author}
 * @date:   ${date}
 */
public interface I${clazz.className}Service {

    /**
     * query all
     *
     * @return
     */
    List<${clazz.className}${viewSuffix}> queryAll();

    /**
     * query by id
     *
     * @param id
     * @return
     */
    ${clazz.className}${viewSuffix} queryById(String id);

    /**
     * pagination query
     *
     * @param pageNum
     * @param pageSize
     * @return
     */
    List<${clazz.className}${viewSuffix}> queryPage(int pageNum, int pageSize);

    /**
     * insert
     *
     * @param vo
     */
    void save(${clazz.className}${viewSuffix} vo);

    /**
     * update by id
     *
     * @param vo
     */
    void updateById(${clazz.className}${viewSuffix} vo);

    /**
     * save or update
     *
     * @param vo
     */
    void saveOrUpdate(${clazz.className}${viewSuffix} vo);

    /**
     * delete by id
     *
     * @param id
     */
    void deleteById(String id);
}